package com.douglas.managesystem.dao.student;

import com.douglas.managesystem.entity.studentpojo.Teacher;

import java.util.List;
import java.util.Map;

/**
 * 教师数据层
 * @author douglas
 */
public interface TeacherMapper {


    /**
     * 1.分页查询教师信息
     * @param entity
     * @return
     */
    List<Teacher> queryListByPage(Map<String, Object> entity);

    /**
     * 2.根据id查询教师信息
     * @param id
     * @return
     */
    Teacher queryTeacherById(String id);

    /**
     * 3.新增教师信息
     * @param teacher
     */
    void insert(Teacher teacher);

    /**
     * 4.更新教师信息
     * @param teacher
     */
    void update(Teacher teacher);

    /**
     * 5.根据id删除教师信息
     * @param id
     */
    void delete(String id);

    /**
     * 6.根据teacherId查询教师对象
     * @param teacherId
     * @return
     */
    Teacher queryTeacherByTeacherId(String teacherId);

    /**
     * 7.查询所有教师id
     * @return
     */
    List<String> queryAllTeacherList();

}
